package com.usian.skill.controller;

import com.sun.org.apache.regexp.internal.RE;
import com.usian.skill.mq.MqSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mq")
public class MqController {
    @Autowired
    private MqSender mqSender;

    @RequestMapping("/send")
    public String sendMsg(){
        mqSender.sendmiaoshaMessage("hello,Mq");
        return "BBq";
    }



}
